package gcb.metalsys.entity.cop;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2019-12-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CopOrderDetail extends Model<CopOrderDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Long orderDetailId;

    private Long orderId;

    private Long productId;

    private Integer productSize;

    private BigDecimal orderDetailPrice;

    public CopOrderDetail(Long orderId, Long productId, Integer productSize, BigDecimal orderDetailPrice) {
        this.orderId = orderId;
        this.productId = productId;
        this.productSize = productSize;
        this.orderDetailPrice = orderDetailPrice;
    }

    public CopOrderDetail() {
    }

    @Override
    protected Serializable pkVal() {
        return this.orderDetailId;
    }

}
